<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-model="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue/vue.js"></script>
</head>
<body>
<div id="app">
    {{uname}}<br>
    <!--v-bind: 单项绑定属性,如果属性改动,仅改动当前标签内容值,不改动data里的属性值-->
    v-bind:<input type="text" name="uname" v-bind:value="uname"><br>
    <!--v-model: 双向绑定属性,如果属性改动,即改动当前标签内容值,也改动data里的属性值-->
    v-model:<input type="text" name="uname" v-model:value="uname"><br>
</div>


<script>

    var app = new Vue({
        el:'#app',
        data:{
           uname:'dafei'

        }
    })
</script>
</body>
</html>